package com.lam.framework.async.model;

public class RunnableTask extends AbstractRunTask<Runnable> implements Runnable {
	
	public RunnableTask(String key, Runnable runnable) {
		super(key, runnable);
	}

	@Override
	public void run() {
		try {
			if(getTask() != null) {
				getTask().run();
			}
		} finally {
			done();
		}
	}

}
